
#ifndef _MEMBER_BPainter_H_
#define _MEMBER_BPainter_H_

#include <BRect>
#include <BColor>
#include <BFont>
#include <BStyle>
#include <BWidget>
#include <BDisplay>
#include <BPainter>
#include <BMatrix>
#include "IGLState.h"

#define painter_member(painter)		((member_BPainter*)((BPainter*)painter)->_ptr)

namespace BWE
{
	class member_BPainter : public IGLState
	{
	public:
		member_BPainter(BPainter* painter);
		~member_BPainter();

		BPainter*			boss;
		const BWidget*		widget;
		const BStyle*		style;
		BSize				size;
		BRect				clip;
		BColor				color;

		const BFont*		font;
		const BTexture*		texture;
		bool				pointSmooth;
		int					pointSize;
		bool				lineSmooth;
		int					lineWidth;
	};
}

#endif
